const app = getApp()
const api = require('../../../config/api.js')
Page({
    data: {
      
  },


    getdateArr:function(){
        let visitors = app.globalData.visitors
        let arr = []
        for (i=0;i<visitors.length;i++){
            arr.push(Object.keys(visitors[i])[0])
        }
        return arr
    },


    onLoad() {
        this.setData({
            visitors:app.globalData.visitors,
            historyVisitors:app.globalData.historyVisitors,
            dateArr:this.getdateArr(),
            
        })
    },
    
    backtoprepage:function(e){
        //跳转tabbar界面要用switchTab
        qq.switchTab({
        url: '/pages/mine/mine'
        })
    }

    })